using System;

namespace Outcoding.GraphGenerator.Entities {
    public class XlBorderWeightHelper {
        public static XlBorderWeight ConvertFromString(string xlBorderWeight) {
            XlBorderWeight value = XlBorderWeight.xlUnknown;
            switch(xlBorderWeight){
                case "xlHairline":
                    value = XlBorderWeight.xlHairline;
                    break;
                case "xlMedium":
                    value = XlBorderWeight.xlMedium;
                    break;
                case "xlThick":
                    value = XlBorderWeight.xlThick;
                    break;
                case "xlThin":
                    value = XlBorderWeight.xlThin;
                    break;
            }
            return value;
        }
    }
}
